package com.qqcy.productserver.controller;

import com.qqcy.productserver.mapper.ProductMapper;
import com.qqcy.productserver.pojo.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ProductController {

    @Autowired
    private ProductMapper productMapper;

    @GetMapping("/product/getAllProduct")
    public Product getProduct(){
        return productMapper.getAllProduct();
    }
}
